package com.spider.site.dao;

import java.util.List;

import com.spider.site.entity.SpiderResult;

public interface SpiderResultDao{

	public List<SpiderResult> getAll();
	
	public boolean saveSpiderResult(SpiderResult reslut);//添加spiderResult
	
	public boolean editSpiderResult(SpiderResult spider);//修改spiderResult
	
	public boolean removeSpiderResult(long id);//根据id删除
	
	public SpiderResult getSpiderResultByURL(String url);//根据url查询
	
	public SpiderResult getSpiderResultById(long id);//根据id查询
	
	public int editSpiderSpin(int spin , long id);//开启或者关闭爬虫
	
}
